package com.foreknow.dao;

import com.foreknow.entity.Scheduling;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SchedulingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Scheduling record);

    int insertSelective(Scheduling record);

    Scheduling selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Scheduling record);

    int updateByPrimaryKey(Scheduling record);

    List<Scheduling> findAllSchedulingByTime(@Param("startTime")String startTime, @Param("endTime")String endTime);

    int insertScheduling(@Param("schedulings")List<Scheduling>schedulings);

    int deleteBytime(@Param("startTime") Date startTime, @Param("endTime")Date endTime);
}